home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat3
/
Tk
/
optionmenu.z
/
optionmenu
Wrap
Text File
|
1998-10-30
|
2KB
|
67 lines
ttttkkkk____ooooppppttttiiiioooonnnnMMMMeeeennnnuuuu((((3333TTTTkkkk)))) ttttkkkk____ooooppppttttiiiioooonnnnMMMMeeeennnnuuuu((((3333TTTTkkkk))))
NNNNAAAAMMMMEEEE
tk_optionMenu - Create an option menubutton and its menu
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ttttkkkk____ooooppppttttiiiioooonnnnMMMMeeeennnnuuuu _w _v_a_r_N_a_m_e _v_a_l_u_e ?_v_a_l_u_e _v_a_l_u_e ...?
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
This procedure creates an option menubutton whose name is _w, plus an
associated menu. Together they allow the user to select one of the
values given by the _v_a_l_u_e arguments. The current value will be stored in
the global variable whose name is given by _v_a_r_N_a_m_e and it will also be
displayed as the label in the option menubutton. The user can click on
the menubutton to display a menu containing all of the _v_a_l_u_es and thereby
select a new value. Once a new value is selected, it will be stored in
the variable and appear in the option menubutton. The current value can
also be changed by setting the variable.
The return value from ttttkkkk____ooooppppttttiiiioooonnnnMMMMeeeennnnuuuu is the name of the menu associated
with _w, so that the caller can change its configuration options or
manipulate it in other ways.
KKKKEEEEYYYYWWWWOOOORRRRDDDDSSSS
option menu
PPPPaaaaggggeeee 1111